
    <?=form_open('news/addcat');?>
    <table class="form">
        <tr>
            <td class="label w150">Tên chuyên mục</td>
            <td><input type="text" name="lb_category" id="title" class="w300" value="<?=set_value('lb_category')?>"></td>
        </tr>
        <tr>
            <td class="label">Chuyên mục</td>
            <td>
                <select name="parent_id">
                    <option value="0">Là chuyên mục chính</option>
                    <? foreach($listcat as $val):?>
                    <option value="<?=$val->category_id?>"><?=$val->lb_category?></option>
                    <? endforeach;?>
                </select>
            </td>
        </tr>
        <tr>
            <td class="label">Hiển thị</td>
            <td><input type="checkbox" name="bl_active" value="1" <?=(set_value('bl_active')==1)?'checked="checked"':'';?>></td>
        </tr> 
        <tr>
            <td colspan="2" class="footer"><input type="submit" name="bt_submit" class="themmoi"></td>
        </tr>               
    </table>
    <?=form_close();?>
